package com.xinqi.modules.chat.chat.friend.dto.req;

import com.xinqi.common.green.annotation.Text;
import com.xinqi.modules.chat.enums.apply.FriendApplyStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 加好友申请列表-请求对象
 *
 * @author: system
 * @date: 2023/01/12
 */
@Data
@Schema(description = "加好友申请列表-同意拒绝")
public class ChatFriendApplyAutoDTO extends ChatFriendApplyDeleteDTO implements Serializable {

    /**
     * 状态:0=未处理,1=已同意,2=已拒绝,3=已过期
     */
    @Schema(description = "状态:0=未处理,1=已同意,2=已拒绝,3=已过期")
    @NotNull(message = "{chat.friend.apply.status.not.blank}")
    private FriendApplyStatusEnum status;

    /**
     * 重命名好友昵称
     */
    @Text
    @Schema(description = "重命名好友昵称")
    @Size(min = 0, max = 15, message = "{chat.friend.apply.renames.length.valid}")
    private String renames;

    @Schema(title = "操作用户ID(内部流转参数，不对外)", hidden = true)
    private Long operationUserId;
}
